cmake_minimum_required(VERSION 3.3)
project(qtd)

set(CMAKE_INCLUDE_CURRENT_DIR on)

set(CMAKE_AUTOMOC on)

find_package(Qt5Widgets)
find_package(OpenCV)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(SOURCE_FILES main.cpp Dialog.cpp Dialog.h)

add_executable(qtd ${SOURCE_FILES})

target_link_libraries(qtd Qt5::Widgets )
target_link_libraries(qtd ${OpenCV_LIBS})